package crawler.cnki.service.impl;

import crawler.cnki.entity.Patent;
import crawler.cnki.service.PatentService;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PatentImpl implements PatentService {
    @Resource
    private MongoTemplate mongoTemplate;
    @Override
    public void save(Patent patent) {
        mongoTemplate.save(patent);
    }
}
